package com.yudean.esb.dao.mds;

import com.yudean.esb.domain.mds.MdsHfmEntity;
import com.yudean.esb.mapper.mds.MdsHfmEntityMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository("mdsHfmEntityDao")
@Scope("prototype")
public class MdsHfmEntityDao {
    @Resource
    private MdsHfmEntityMapper mdsHfmEntityMapper;

    /**
     * @return
     */
    public List<MdsHfmEntity> getAllMdsHfmEntity() {

        List<MdsHfmEntity> list = mdsHfmEntityMapper.getAllMdsHfmEntity();
        if (list == null || list.size() < 1) {
            return null;
        }
        return list;
    }
}
